<?php
$sn = preg_replace('/(\w)\.(\d{3})\.(\d{3})/', '${1}.000.000', 'D.000.000');
var_dump($sn);die();
